//
//  HeartRateModel.swift
//  DaRings
//
//  Created by 尹琼 on 2022/10/28.
//

import UIKit
import Charts
import MYModule


open class HomeHeartRateModel: HomeModel {
    
    public var date: String = ""
    
    /// 测量按钮状态
    public var measureState: UIControl.State = .disabled
    
    /// 单次测量心率
    public var heartRate: Int = 0
    
    /// 图表最大值
    public var chartMaxData: Int = 200
    
    /// 图表最小值
    public var chartMinData: Int = 0
    
    /// 图表 Y轴线个数（不包含 0轴线）
    public var chartYAxisLineCount: Int = 4
    
    
    public var hasData = false
    
    public var chartDatas: [HeartBarData] = []
    
    open var heartRateTitle: String {
        
        return heartRate.normalTitle
    }
    
   
}




